
from week3 import Base
from selenium.webdriver.common.by import By

class Page(Base):

    denglu_log = find_element(By.XPATH,'/html/body/div[2]/div/div[1]/div/a[1]')

    def denglu(self):
        self.click(denglu_log)

    user_loc =  find_element(By.NAME,'uname')
    def username(self):
        self.send_keys(user_loc,'18615488780')

    pwd_loc = find_element(By.NAME, '_pwd')

    def userpwd(self):
        self.send_keys(pwd_loc, '123456')


    login_loc = find_element(By.ID,'save')
    def lohin(self):
        self.click(login_loc)